package com.envper.mysql.domain.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserContainerDto {

    /**
     * Docker容器ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 容器名
     */
    private String name;

    /**
     * 用户ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /**
     * 容器状态
     */
    private Integer status;

    /**
     * 是否删除
     */
    private Boolean delFlag;

    /**
     * 创建时间
     */
    private LocalDateTime created;

    /**
     * 更新时间
     */
    private LocalDateTime updated;


}
